package com.jic.veteran.portal.controller;

import com.jic.veteran.common.api.CommonResult;
import com.jic.veteran.portal.domain.DonationListDto;
import com.jic.veteran.portal.service.BigScreenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@Api(tags = "BigScreenController")
@RequestMapping("/bigh5")
public class BigScreenController {
    @Autowired
    private BigScreenService bigScreenService;

//    @ApiOperation("大屏捐款记录")
//    @RequestMapping(value = "/payList", method = RequestMethod.GET)
//    @ResponseBody
//    public CommonResult<List<DonationListDto>> payList() {
//        List<DonationListDto> donationListDtoList = bigScreenService.list();
//        return CommonResult.success(donationListDtoList);
//    }
//
//    @ApiOperation("大屏捐款人数")
//    @RequestMapping(value = "/paySumCount", method = RequestMethod.GET)
//    @ResponseBody
//    public CommonResult<String> payCount() {
//        String paySumCount = bigScreenService.payCount();
//        return CommonResult.success(paySumCount);
//    }
//
//    @ApiOperation("大屏捐款总额")
//    @RequestMapping(value = "/paySumMount", method = RequestMethod.GET)
//    @ResponseBody
//    public CommonResult<String> paySumMount() {
//        String paySumMount = bigScreenService.payAmout();
//        return CommonResult.success(paySumMount);
//    }
}
